import request from '@/utils/request'

// 查询安全风险记录列表
export function listsafetyHazardRecord(query) {
  return request({
    url: '/system/safetyHazardRecord/list',
    method: 'get',
    params: query
  })
}

// 查询安全风险记录详细
export function getsafetyHazardRecord(id) {
  return request({
    url: '/system/safetyHazardRecord/' + id,
    method: 'get'
  })
}

// 新增安全风险记录
export function addsafetyHazardRecord(data) {
  return request({
    url: '/system/safetyHazardRecord',
    method: 'post',
    data: data
  })
}

// 修改安全风险记录
export function updatesafetyHazardRecord(data) {
  return request({
    url: '/system/safetyHazardRecord',
    method: 'put',
    data: data
  })
}

// 删除安全风险记录
export function delsafetyHazardRecord(id,dealContent) {
  return request({
    url: '/system/safetyHazardRecord/' + id+'/'+dealContent,
    method: 'delete'
  })
}

// 导出安全风险记录
export function exportsafetyHazardRecord(query) {
  return request({
    url: '/system/safetyHazardRecord/export',
    method: 'get',
    params: query
  })
}

// 数量下拉
export function getSelectlist() {
  return request({
    url: '/system/safetyHazardRecord/getSelectlist',
    method: 'get',
  })
}